//使用的是 axios 请求数据
import axios from 'axios'
//配置基础路径
axios.defaults.baseURL = "https://www.easy-mock.com/mock/5d510ebae9fc126634f52d8d/shoppingmall";

//获取后直接去除data，获取json中data的
axios.interceptors.response.use((data)=>data.data.data);


export let getSlidesData=()=>{
  return axios.get("/slides")
}

export let getCategoryData=()=>{
  return axios.get("/category")
}

export let getRecommendData=()=>{
  return axios.get("/recommend")
}

export let getFloorsData=()=>{
  return axios.get("/floors")
}
